# -*- coding: utf-8 -*-
#__author__ = '风中的思绪'

from openerp import models, fields


class MrpProcess(models.Model):
    _name = "mrp.process"

    # columns
    workshop_section = fields.Many2one('configuration.common.type', '生产工段',
                                # required=True,
                                select=True,
                                domain="[('type_code', '=', '0601')]"
                                )
    code = fields.Char(string="编码", size=50, required=True)
    name = fields.Char(string="名称", size=200, required=True)
    process_time = fields.Integer(string="工时", size=50)
    process_price = fields.Float(string="工价", size=50)
    remark = fields.Text(string="备注")
    # is_system = fields.Boolean(string="是否上级类别")
    order_no = fields.Integer(string="顺序")
    usable = fields.Boolean(string="是否可用", default=True)